//
// Created by ✎﹏ℳ๓独赏 ☆独醉 on 2023/4/13.
//
#include <stdio.h>
int main(){
    int a,b;
    for(a=1,b=1;a<=100;a++){
        if(b>=20)break;//break执行后还会执行a++
        if(b%3==1){
            b=b+3;
            continue;
        }
        b=b-5;
    }
    printf("%d\n%d",a,b);
    return 0;
}